import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; //ChangeNotifier需要material素材库



// ignore: camel_case_types
class CnOssPolicModel {
  String accessKeyId = ""; // 
  String policy = ""; // 
  String signature = ""; // 
  String expire = "";
  String host = "";
  String callback = "";
  String dir = "";

 CnOssPolicModel(
      {required this.accessKeyId,
      required this.policy,
      required this.signature,
      required this.expire,
      required this.host,
      required this.callback,
      required this.dir,
      });
  CnOssPolicModel.empty();

 factory CnOssPolicModel.coverFromJson(dynamic data) =>
      CnOssPolicModel(
          accessKeyId: data['accessKeyId'],
          policy: data['policy'],
          signature: data['signature'],
          expire: data['expire'],
          host: data['host'],
          callback: data['callback'],
          dir: data['dir'],
          );
}